import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI, { Message } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import axios from 'axios'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import AV from 'leancloud-storage';

AV.init({
  appId: '0KuLZrqtyWP6cud4ITK8JcBz-MdYXbMMI',
  appKey: 'YvE1rzlwQC7Ibs05yyOrM6dc',
  serverURL: 'https://leancloud.uodrad.tk', // 可选，API服务器地址，默认为 https://appname.lc-cn-n1-shared.com
});

Vue.config.productionTip = false
Vue.prototype.AV = AV
Vue.prototype.axios = axios
Vue.prototype.$message = Message
Vue.prototype.host = "http://100.95.83.53:7000"

Vue.use(ElementUI)
Vue.use(ViewUI)
Vue.use(Viewer)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
